#!/bin/sh

cd ../../
# path:./meeting
# build 
# mock npm build 
#mkdir -p dist
#echo "welcome to meeting!" > ./dist/home.html

export PATH=/opt/node-v16.18.1-linux-x64/bin:$PATH
export PATH=/opt/pnpm_package_6.23.2:$PATH

node -v

cd source-sm


current_time=`date +"%Y-%m-%d %H:%M:%S"`
echo $current_time 'pnpm build-start'

ulimit -n 10240
ulimit -a

pnpm i
pnpm build

end_time=`date +"%Y-%m-%d %H:%M:%S"`
echo $end_time 'pnpm build-end'
